home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 002 / make / makefile < prev    next >
Makefile  |  1995-03-17  |  2KB  |  121 lines

  1. #
  2. # MSDOS Make utility
  3. # (compile with Wizard C version 2.0)
  4. #
  5.  
  6. CC =        cc
  7.  
  8. #DBUG =        -DDBUG
  9. #LIBS =        -ldbug
  10.  
  11. CFLAGS =    -O $(DBUG)
  12.  
  13. H =        make.h
  14.  
  15. FILES =        $H make.c macro.c token.c parsedir.c file.c osdate.c execute.c
  16.  
  17. #  This version of make currently does not grok continuation lines with
  18. #  escaped newlines.  To avoid extra long lines, we define some intermediate
  19. #  macros.
  20.  
  21. OBJS1 =        make.o macro.o token.o parsedir.o file.o osdate.o
  22. OBJS2 =        getdir.o lwtol.o execute.o sys.o
  23. OBJS =        $(OBJS1) $(OBJS2)
  24.  
  25. LSRC1 =        make.c macro.c token.c parsedir.c file.c osdate.c
  26. LSRC2 =        getdir.c lwtol.c execute.c sys.c
  27. LSRC =        $(LSRC1) $(LSRC2)
  28.  
  29. DOCUMENTATION = readme make.man makefile
  30.  
  31. all :        pdmake
  32.  
  33. pdmake :    $(OBJS)
  34.         $(CC) -o pdmake $(OBJS) $(LIBS)
  35.  
  36. make.o :    make.c $H
  37.         $(CC) $(CFLAGS) -c make.c
  38.  
  39. macro.o :    macro.c $H
  40.         $(CC) $(CFLAGS) -c macro.c
  41.  
  42. token.o :    token.c $H
  43.         $(CC) $(CFLAGS) -c token.c
  44.  
  45. parsedir.o :    parsedir.c $H
  46.         $(CC) $(CFLAGS) -c parsedir.c
  47.  
  48. file.o :    file.c $H
  49.         $(CC) $(CFLAGS) -c file.c
  50.  
  51. execute.o :    execute.c $H
  52.         $(CC) $(CFLAGS) -c execute.c
  53.  
  54. osdate.o :    osdate.c $H lar.h
  55.         $(CC) $(CFLAGS) -c osdate.c
  56.  
  57. sys.o :        sys.c $H
  58.         $(CC) $(CFLAGS) -c sys.c
  59.  
  60. #
  61. #    Makefile for lar.
  62. #
  63.  
  64. lar.exe : lwtol.o getdir.o lar.o 
  65.     link lar+lwtol+getdir,lar,lar/map
  66.  
  67. lar.o : lar.lar ( lar.c lar.h )
  68.     cc -c lar.c
  69.  
  70. #
  71. # Files shared by lar and make.
  72. #
  73.  
  74. getdir.o :    getdir.c lar.h
  75.         $(CC) $(CFLAGS) -c getdir.c
  76.  
  77. lwtol.o :    lwtol.c lar.h
  78.         $(CC) $(CFLAGS) -c lwtol.c
  79.  
  80. #
  81. # Print files associated with MAKE
  82. #
  83.  
  84. print :
  85.     print make.man $(FILES) makefile
  86.  
  87. #
  88. # collect source and documentation files
  89. #
  90.  
  91. collect :
  92.     lar uv make.lar $(FILES) $(DOCUMENTATION)
  93.     lar uv lar.lar lar.c lar.h lwtol.c getdir.c
  94.     lar rv make.lar
  95.     lar rv lar.lar
  96.  
  97. #
  98. # copy to distribution disk (on A:)
  99. #
  100. distribution :
  101.     copy readme a:
  102.     copy make.man a:
  103.     copy makefile a:
  104.     copy make.c a:
  105.     copy macro.c a:
  106.     copy token.c a:
  107.     copy parsedir.c a:
  108.     copy file.c a:
  109.     copy osdate.c a:
  110.     copy execute.c a:
  111.     copy lar.h a:
  112.     copy lar.c a:
  113.     copy getdir.c a:
  114.     copy lwtol.c a:
  115.     copy makemake.exe a:
  116.  
  117.  
  118.  
  119. lint:
  120.     lint $(LSRC) >lint.out
  121.